@import '~sassvar';

.steps {
    display: flex;
    justify-content: space-between;
    padding: 40px 0 32px 0;
    background: #fff;

    &.cant-back {
        .past {
            .step-index {
                background: #e6e6e6;
            }
        }

        .step:after {
            background: #e6e6e6;
        }
    }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;

    &:after {
        content: '';
        position: absolute;
        top: 16px;
        left: 50%;
        right: -50%;
        height: 1px;/*no*/
        background: #e6e6e6;
    }

    &:last-child:after,
    &:last-child:before {
        display: none!important;
    }

    &.active, &.past {
        &:after {
            background: $background-primary;
        }

        .step-index {
            background: $background-primary;
        }
        
        .step-text {
            color: $text-primary;
        }
    }

    &.active {
        &:after {
            width: 50%;
        }

        &:before {
            content: '';
            position: absolute;
            top: 16px;
            right: -50%;
            width: 50%;
            height: 1px;/*no*/
            background: #e6e6e6;
        }
    }
}

.step-index {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    border-radius: 32px;
    background: #e6e6e6;
    position: relative;
    z-index: 1;
}

.step-text {
    line-height: 32px;
    font-size: 22px;
    margin: 0 -20px;
    text-align: center;
    color: $text-light;
}